<?php
include_once '../tools/DbTools.php';
if(empty($_COOKIE)){
    echo '未登录<br/>';
    echo '<a href="AdminiUi.php">去登陆</a>';die;
}
$IDCard = $_POST['IDCard'];
$Phone = $_POST['Phone'];
$OpenUser = $_POST['OpenUser'];
DbTools::InitDb();
$sql = "insert into accountinfo(AccountCode,AccountPhone,RealName,OpenTime) 
        values($IDCard,$Phone,'$OpenUser',NOW())";
$result = DbTools::noSelect($sql);
DbTools::close();
if(empty($result)){
    echo '失败';
    die;
}else{
    echo '成功';
    echo '<a href="AdminiAction.php">返回系统</a>';
}


